#if the pkg created in packages-woof has something wrong, this file is a last
#resort to fix it. Current-dir is where this file FIXUPHACK is located.

#so did these, but needed...
[ -e usr/lib/libchromeXvMCPro.so.1 ] && ln -snf libchromeXvMCPro.so.1 usr/lib/libchromeXvMCPro.so
[ -e usr/lib/libchromeXvMC.so.1 ] && ln -snf libchromeXvMC.so.1 usr/lib/libchromeXvMC.so
[ -e usr/lib/libI810XvMC.so.1 ] && ln -snf libI810XvMC.so.1 usr/lib/libI810XvMC.so
[ -e usr/lib/libIntelXvMC.so.1 ] && ln -snf libIntelXvMC.so.1 usr/lib/libIntelXvMC.so

#inrepid again. remove this, as xorg_base pkg has X as a symlink...
rm -f usr/bin/X 2>/dev/null

#arch, has extra servers in the one xorg-servers pkg...
rm -f usr/bin/Xnest 2> /dev/null
rm -f usr/bin/Xvfb 2> /dev/null
rm -f usr/bin/Xephyr 2> /dev/null

#also has dri modules, but this is a cutdown pkg...
rm -rf usr/lib/xorg/modules/dri 2> /dev/null
#...note, ubuntu has xorg 7.4 which seems to need /usr/lib/dri/swrast_dri.so but note
#   that this is in the 'xorg_base' woof package.
#...note also, the arch dri modules need libdricore.so but I don't know where that is.

#100704 slackware 13.1, these X servers get through...
rm -f usr/bin/Xfbdev 2> /dev/null
rm -f usr/bin/Xsdl 2> /dev/null
rm -f usr/bin/Xdmx 2> /dev/null
rm -f usr/bin/Xfbdev 2> /dev/null
rm -f usr/bin/*dmx* 2> /dev/null

#110623 mageia1 puts intel_drv.so in a strange place...
if [ -f usr/lib/xorg/modules/drivers/intel-common/intel_drv.so ];then
 mv -f usr/lib/xorg/modules/drivers/intel-common/intel_drv.so usr/lib/xorg/modules/drivers/
 rmdir usr/lib/xorg/modules/drivers/intel-common
fi

#110727 mageia1 creates /usr/bin/X symlink to Xwrapper, override...
ln -snf Xorg usr/bin/X

#120516 gentoo places libglx.so, libdri.so, libdri2.so in strange place...
if [ -f usr/lib/opengl/xorg-x11/extensions/libglx.so ];then
 if [ -d usr/lib/xorg/modules/extensions ];then
  cp -a -f --remove-destination usr/lib/opengl/xorg-x11/extensions/* usr/lib/xorg/modules/extensions/
  sync
  rm -rf usr/lib/opengl/xorg-x11/extensions
 fi
fi
#...also, libGL.so* in strange place, see 'mesa' template.

